package com.example.demo.service.impl;

import com.example.demo.dao.IntegralCommodityListDao;
import com.example.demo.pojo.IntegralCommodityList;
import com.example.demo.service.IntegralCommodityListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("integralCommodityListService")
public class IntegralCommodityListServiceImpl implements IntegralCommodityListService{
    @Resource
    private IntegralCommodityListDao integralCommodityListDao;


    @Override
    public int deleteByPrimaryKey(Integer integralgoodsid) {
        return integralCommodityListDao.deleteByPrimaryKey(integralgoodsid);
    }

    @Override
    public int insert(IntegralCommodityList record) {
        return integralCommodityListDao.insert(record);
    }

    @Override
    public IntegralCommodityList selectByPrimaryKey(Integer integralgoodsid) {
        return integralCommodityListDao.selectByPrimaryKey(integralgoodsid);
    }

    @Override
    public int updateByPrimaryKey(IntegralCommodityList record) {
        return integralCommodityListDao.updateByPrimaryKey(record);
    }

    @Override
    public List<IntegralCommodityList> getAll() {
        return integralCommodityListDao.getAll();
    }
}
